/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.receive.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.asset.dto.receive.ReceiveCreateDTO;
import com.fuyao.cloud.asset.dto.receive.ReceiveEditDTO;
import com.fuyao.cloud.asset.dto.receive.ReceiveExcelDTO;
import com.fuyao.cloud.asset.dto.receive.ReceiveSearchDTO;
import com.fuyao.cloud.asset.entity.receive.Receive;
import com.fuyao.cloud.common.core.util.R;

import java.util.List;

/**
 * 资产领用
 *
 * @author liyue
 * @date 2021-12-16 10:41:00
 */
public interface ReceiveService extends IService<Receive> {

	/**
	 * 资产领用创建方法
	 *
	 * @return 资产领用对象
	 */
	ReceiveCreateDTO create(String type);

	/**
	 * 资产领用编辑方法
	 *
	 * @param id 资产领用id
	 * @return 资产领用编辑对象
	 */
	ReceiveEditDTO edit(Long id);

	/**
	 * 查询资产领用信息
	 *
	 * @param query 查询构造器
	 * @return 领用信息
	 */
	List listReceive(QueryWrapper<Receive> query,String type);

	IPage page(Page page, QueryWrapper queryWrapper, ReceiveSearchDTO receive);

	/**
	 * 批量删除
	 * @param ids 业务ids集合
	 * @return R
	 */
    R batchDelete(List<Long> ids);

	/**
	 * 审批
	 * @param receive
	 * @return
	 */
    boolean approval(Receive receive);
}
